export const table1Columns = [
    {
        title: '标题',
        key: 'title',
        align: 'center'
    },
    {
        title: '内容',
        key: 'content',
        align: 'center'
    },
    {
        title: '上架时间',
        key: 'stime',
        align: 'center'
    },
    {
        title: '状态',
        key: 'state',
        align: 'center',
        render: (h, params) => {
        const row = params.row
        const state = row.state === '1' ? '未上架' : row.state === '0' ? '已经上架' : '未知'
        return h('Button', {
            props: {
              type: 'default',
              size: 'small'
            }
        }, state);
        }
    },
    {
        title: '操作',
        align: 'center',
        key: 'handle',
        handle: ['edit','delete']
    }
];
